package com.etc.dao;

import com.etc.entity.User;
import com.etc.entity.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
	
	/**
	 * 根据用户账号查询用户
	 * @param uno
	 * @return
	 */
	User findUserByUno(@Param("uno")String uno);
	
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer uid);
    /**
     * 增减一个用户
     * @param record
     * @return
     */
    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer uid);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);
    /**
     * 根据用户主键对用户信息进行更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}